import request from "../request";
import requestUrl from "../requestUrl";
import requestParam from "../requestParam";



// 获取左侧菜单
export function getSideMenu() {
  return request({
    url: requestUrl("/sys/menu/nav"),
    method: "get",
    data: requestParam()
  });
}

// 获取树形菜单，根据路由参数
export function getTreeMenu() {
  return request({
    url: requestUrl("/sys/treemenu"),
    method: "get",
    data: requestParam()
  });
}
